package cn.com.infcn.spider.io.input.impl;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.com.infcn.spider.io.input.Input;

public class listInput implements Input {

	private List<Object> lists = null;

	public listInput(JSONObject job, String jobName) {
		lists = new ArrayList<Object>();
		for (Object object : job.getJSONArray("list")) {
			lists.add(object);
		}
	}

	@Override
	public List<Object> all() {
		return lists;
	}

}
